{% extends '::base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<style>
		label, input.text { display:block; }
		input.text { margin-bottom:12px; width:25%; padding: .4em; }
		
</style>
{% endblock %}
{% block body %}



<div id="accordion">
   <h1> Редактирование даных</h1>
   
    <form action="{{ path('_user_page') }}" method="POST" id="contact_form">
              <h2>Основные данные </h2>
                <div class="left_box">
                    {{ form_label(form.username) }}
                    {{ form_widget(form.username, {'attr': {'class': 'text' } }) }}
                    {{ form_label(form.email) }}
                    {{ form_widget(form.email, {'attr': {'class': 'text' } }) }}
                 </div>
             <h2>Сменить пароль</h2>
                <div class="left_box">
                    {{ form_label(form.old_password) }}
                    {{ form_widget(form.old_password, {'attr': {'class': 'text' } }) }}
                    {{ form_label(form.new_password) }}
                    {{ form_widget(form.new_password, {'attr': {'class': 'text' } }) }}
                    {{ form_rest(form) }}
                </div>
            <input type="submit"/>
     </form>
      
 </div>
{% endblock %}
{% block post_init_javascript %}
{{ parent() }}
    $( "input:submit").button()
    $("#accordion").accordion({ header: "h2" });
{% endblock %}